<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>系统</title>
		<!-- 引入 layui.css -->
		<link href="/static/layui/css/layui.css" rel="stylesheet">
		<script src="http://code.jquery.com/jquery-latest.js"></script>
		<!-- 引入 layui.js -->
		<script src="/static/layui/layui.js"></script>
	</head>
	<body>
		<div class="layui-layout layui-layout-admin">
		  <div class="layui-header">
		    <div class="layui-logo layui-hide-xs layui-bg-black">系统</div>
		    <!-- 头部区域（可配合layui 已有的水平导航） -->
		    <ul class="layui-nav layui-layout-left">
		      <!-- 移动端显示 -->
		      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
		        <i class="layui-icon layui-icon-spread-left"></i>
		      </li>
		      <li class="layui-nav-item layui-hide-xs {block name='sy'}{/block}"><a href="{:url('Index/index')}"><i class="layui-icon layui-icon-home" style="margin-right:6px;"></i>首页</a></li>
		    </ul>
		    <ul class="layui-nav layui-layout-right">
		      <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
		        <a href="javascript:;">
		          <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
		          {$Think.cookie.username}
		        </a>
		        <dl class="layui-nav-child">
		          <dd><a href="javascript:;" onclick="out({$Think.cookie.id})">退出系统</a></dd>
		        </dl>
		      </li>
		      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
		        <a href="javascript:;">
		          <i class="layui-icon layui-icon-more-vertical"></i>
		        </a>
		      </li>
		    </ul>
		  </div>
		  <div class="layui-side layui-bg-black">
		    <div class="layui-side-scroll">
		      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
		      <ul class="layui-nav layui-nav-tree" lay-filter="test">
		        <li class="layui-nav-item {block name='thgl'}{/block}">
		          <a class="" href="javascript:;">退货管理</a>
		          <dl class="layui-nav-child">
		            <dd class="{block name='tjyw'}{/block}"><a href="{:url('Returntable/tablea')}">退件业务</a></dd>
		            
		          </dl>
		        </li>
				<li class="layui-nav-item {block name='bxgl'}{/block}">
				  <a class="" href="javascript:;">报销管理</a>
				  <dl class="layui-nav-child">
				    <dd class="{block name='bxyw'}{/block}"><a href="{:url('Reimbursement/reimbursement',['id'=>$Think.cookie.id])}">报销业务</a></dd>
				    
				  </dl>
				</li>
				<li class="layui-nav-item {block name='pz'}{/block}">
				  <a class="" href="javascript:;">配置</a>
				  <dl class="layui-nav-child">
				    <dd class="{block name='ptgl'}{/block}"><a href="{:url('Disposition/platform')}">平台管理</a></dd>
				    <dd class="{block name='cpgl'}{/block}"><a href="{:url('Disposition/product')}">产品管理</a></dd>
				  </dl>
				</li>
		      </ul>
		    </div>
		  </div>
		  <div class="layui-body">
		    <!-- 内容主体区域 -->
		    <div style="padding: 15px;">
		      <div class="layui-card layui-panel">
		        <div class="layui-card-body">
		        {block name="main"}{/block}
		        </div>
		      </div>
		      <br><br>
		    </div>
		  </div>
		  <div class="layui-footer">
		    <!-- 底部固定区域 -->
			备案号：<a href="https://beian.miit.gov.cn/" target="_blank">1234567890</a>
		  </div>
		</div>
	</body>
	<script type="text/javascript">
		function out(id){
			layer.confirm("确定退出吗？",function(id){
				$.ajax({
					type:'get',
					url:'{:url("Login/out",array('id'=>$Request.cookie.id))}',
					data:'id='+id,
					success: function(data) {
						if(data.code==200){
							layer.msg(data.msg,{time:500},function(){
								window.location.href="{:url('Login/login')}"
							});
						}else{
							layer.msg(data.msg);
						}
					}
				})
			})
		}
	</script>
	{block name="js"}{/block}
</html>